<script setup>
import 'swiper/css'
import 'swiper/css/navigation'
import 'swiper/css/pagination'
import '@/assets/reset.less'


const { asyncUserInfo } = useUser()

if (!process.server) {
  // socketio链接
  const { initialize } = useSocket()
  initialize()
  console.log("123")
}



// 同步用户数据
await asyncUserInfo()



useHead({
  title: '小滴课堂', meta: [
    { name: "description", content: "小滴课堂的网站" },
    { name: "keywords", content: "vue3教程,微服务教程,nuxt3教程" },
  ]
})


</script>


<template>
  <NuxtLayout>
    <NuxtPage :key="$route.fullPath" />
  </NuxtLayout>
</template>
<style lang='less' scoped></style>